package com.trie;

/**
 * @Author: tgy
 * @Date: 2020-10-12 13:51
 */
public interface Trie<V> {

    int size();

    boolean isEmpty();

    void  clear();

    boolean contains(String key);

    V add(String key, V value);

    V get(String key);

    V remove(String key);

    boolean startWith(String prefix);
}
